package cn.getech.data.development.constant;

import lombok.Getter;

/**
 * 任务类型的枚举
 *
 * @author zenith
 */
@Getter
public enum ConTypeType {

    JDBC(0),
    FTP(1),
    KAFKA(2),
    JieKou(3),
    Sap(4),
    WebService(5),
    ES(6),
    HBase(7),
    Kudu(8),
    OracleNTS(9),
    MongoDB(10),
    SFTP(11);

    int code;

    ConTypeType(int code) {
        this.code = code;
    }
    public static ConTypeType ObjOf(Integer status) {
        if (status == null) {
            return null;
        } else {
            for (ConTypeType s : ConTypeType.values()) {
                if (s.getCode() == status) {
                    return s;
                }
            }
            return null;
        }
    }


}
